using System;
using System.Collections.Generic;
using System.Text;
using DotExe.Core.Web;
using DotExe.Core.DataSources;

namespace WebSMSApp.Forms
{
    public partial class GroupListForm : ClientApplication
    {
        GroupDetailsForm group = new GroupDetailsForm();
        EmployeeListForm agents = new EmployeeListForm();

		public GroupListForm()
			: base()
		{
			this.Loaded += new System.EventHandler(GroupListForm_Load);
			this.Started += new System.EventHandler(GroupListForm_Started);
		}
		
		//occures after datasources and trigger configuration loads
		protected void GroupListForm_Load(object sender, EventArgs e)
		{
			InitializeComponent();
			
			//initialize custom data sources and triggers
		}
		
		//ocurres on everytime form starts
		protected void GroupListForm_Started(object sender, EventArgs e)
		{
		
		}
		
		protected virtual void btnEditGroupClick(object sender, EventArgs e)
		{
			
		}
		protected virtual void btnAddGroupClick(object sender, EventArgs e)
		{
            group.StartModal();
		}
		protected virtual void btnDeleteGroupClick(object sender, EventArgs e)
		{
			
		}
		protected virtual void gvGroupsCellClick(object sender, EventArgs e)
		{
			
		}
		protected virtual void gvGroupsCellDoubleClick(object sender, EventArgs e)
		{
			
		}

		protected virtual void btnAddIntoGroupClick(object sender, EventArgs e)
		{
            agents.StartModal();
		}
		protected virtual void btnDeleteFromGroupClick(object sender, EventArgs e)
		{
			
		}
		protected virtual void gvAgentsGroupsCellClick(object sender, EventArgs e)
		{
			
		}
		protected virtual void gvAgentsGroupsCellDoubleClick(object sender, EventArgs e)
		{
			
		}
    }
}